/*
 * @Description  :
 * @Author       : YiDing Xue
 * @Date         : 2023-03-03
 * @LastEditors  : YiDing Xue
 * @LastEditTime : 2023-03-03
 */
import { request } from '@/utils'

const API = {
  history: '/history', // 保存历史记录
  histories: '/history/histories', // 历史记录列表
  latest: '/history/latest' // 获取最后一次收听记录
}

/**
 * 保存历史记录
 * @param {Object} playData 播放数据
 * @returns
 */
export const saveHistory = playData => request.post(API.history, playData)
